package com.ruoyi.rva.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rva.mapper.RvaViewbuttonMapper;
import com.ruoyi.rva.domain.RvaViewbutton;
import com.ruoyi.rva.service.IRvaViewbuttonService;

/**
 * 视图属性Service业务层处理
 * 
 * @author jiaodacailei
 * @date 2021-07-29
 */
@Service
public class RvaViewbuttonServiceImpl implements IRvaViewbuttonService 
{
    @Autowired
    private RvaViewbuttonMapper rvaViewbuttonMapper;

    /**
     * 查询视图属性
     * 
     * @param id 视图属性ID
     * @return 视图属性
     */
    @Override
    public RvaViewbutton selectRvaViewbuttonById(String id)
    {
        return rvaViewbuttonMapper.selectRvaViewbuttonById(id);
    }

    /**
     * 查询视图属性列表
     * 
     * @param rvaViewbutton 视图属性
     * @return 视图属性
     */
    @Override
    public List<RvaViewbutton> selectRvaViewbuttonList(RvaViewbutton rvaViewbutton)
    {
        return rvaViewbuttonMapper.selectRvaViewbuttonList(rvaViewbutton);
    }

    /**
     * 新增视图属性
     * 
     * @param rvaViewbutton 视图属性
     * @return 结果
     */
    @Override
    public int insertRvaViewbutton(RvaViewbutton rvaViewbutton)
    {
        return rvaViewbuttonMapper.insertRvaViewbutton(rvaViewbutton);
    }

    /**
     * 修改视图属性
     * 
     * @param rvaViewbutton 视图属性
     * @return 结果
     */
    @Override
    public int updateRvaViewbutton(RvaViewbutton rvaViewbutton)
    {
        return rvaViewbuttonMapper.updateRvaViewbutton(rvaViewbutton);
    }

    /**
     * 批量删除视图属性
     * 
     * @param ids 需要删除的视图属性ID
     * @return 结果
     */
    @Override
    public int deleteRvaViewbuttonByIds(String[] ids)
    {
        return rvaViewbuttonMapper.deleteRvaViewbuttonByIds(ids);
    }

    /**
     * 删除视图属性信息
     * 
     * @param id 视图属性ID
     * @return 结果
     */
    @Override
    public int deleteRvaViewbuttonById(String id)
    {
        return rvaViewbuttonMapper.deleteRvaViewbuttonById(id);
    }
}
